package com.automannn.seataSamples.stock.service;

import com.automannn.seataSamples.api.dto.CommodityDTO;
import com.automannn.seataSamples.api.response.ObjectResponse;
import com.automannn.seataSamples.stock.entity.StockPO;
import com.baomidou.mybatisplus.service.IService;

/**
 * @author automannn
 * @Date 2022/3/24
 */
public interface IStockService extends IService<StockPO> {
    /**
     * 扣减库存
     * @param commodityDTO 商品信息
     * @return 操作结果
     */
    ObjectResponse decreaseStock(CommodityDTO commodityDTO);
}
